home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Languages
/
Caml Light 0.7
/
Caml Light 0.7 source
/
src
/
linker
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-07-05
|
3KB
|
103 lines
# Makefile for the Caml Light linker.
CAMLCOMP = ::camlrun ::camlcomp
CAMLLINK = ::camlrun ::camllink
INCLUDES = -stdlib ::lib: -I ::compiler:
COMPFLAGS = -W -O fast {INCLUDES}
LINKFLAGS = -g {INCLUDES}
EXTERNOBJS = config.zo misc.zo interntl.zo opcodes.zo
OBJS = predef.zo prim_c.zo symtable.zo patch.zo tr_const.zo link.zo ∂
readword.zo version.zo main.zo
GENSOURCES = version.ml prim_c.ml predef.ml
all ƒ camllink
camllink ƒ {OBJS}
{CAMLLINK} {LINKFLAGS} -o camllink stdlib.zo {EXTERNOBJS} {OBJS}
clean ƒ
delete -i camllink {GENSOURCES} Makefile.BAK
delete -i ≈.z[io] ||echo
install ƒ
duplicate -y camllink "{LIBDIR}camllink"
prim_c.ml ƒ ::runtime:primitives
Duplicate -y ::runtime:primitives prim_c.ml
Open prim_c.ml; Find • prim_c.ml
Replace -c ∞ /(?≈)®1/ ' "®1";' prim_c.ml
Replace \;\ '|];;' prim_c.ml
Find • prim_c.ml
Echo 'let primitives_table = [|' >prim_c.ml.§
Close -y prim_c.ml
predef.ml ƒ ::runtime:globals.h ::runtime:fail.h
Echo '#open "const";;'∂n'let predef_variables = [' >predef.ml
Open predef.ml;
Search -q /'/* "'≈'","'≈'" */'/ ::runtime:globals.h >>predef.ml
Find • predef.ml
Replace -c ∞ /≈'/* "'(≈)®1'","'(≈)®2'" */'/ '{qual="®1"; id="®2"};' predef.ml
Clear \;\ predef.ml
Echo '];;'∂n'let predef_exn = [' >>predef.ml
Search -q /'/* "'≈'","'≈'",'[0-9]+' */'/ ::runtime:fail.h >>predef.ml
Find • predef.ml
Replace -c ∞ /≈'/* "'(≈)®1'","'(≈)®2'",'([0-9]+)®3' */'/ '({qual="®1"; id="®2"}, ®3);' predef.ml
Clear \;\ predef.ml
Echo '];;' >>predef.ml
Close -y predef.ml
.zi ƒ .mli
{CAMLCOMP} {COMPFLAGS} {Default}.mli
.zo ƒ .ml
{CAMLCOMP} {COMPFLAGS} {Default}.ml
.ml ƒ .mlp
{CPP} {Default}.mlp > {Default}.ml
gensrc ƒ {GENSOURCES}
depend ƒ {GENSOURCES}
Duplicate -y Makefile Makefile.BAK
Open Makefile; Find • Makefile
Clear /•### DO NOT DELETE THIS LINE∂n/Δ:∞ Makefile
::tools:MakeDepend -Caml -I ::compiler: ≈.ml >>Makefile
Close -y Makefile
version.ml ƒ version.mlp ::version.h
### EVERYTHING THAT GOES BEYOND THIS COMMENT IS GENERATED
### DO NOT DELETE THIS LINE
link.zo ƒ ::compiler:config.zi
link.zo ƒ ::compiler:const.zo
link.zo ƒ ::compiler:emit_phr.zo
link.zo ƒ ::compiler:interntl.zo
link.zo ƒ ::compiler:lambda.zo
link.zo ƒ ::compiler:misc.zo
link.zo ƒ ::compiler:opcodes.zo
link.zo ƒ patch.zo
link.zo ƒ ::compiler:reloc.zo
link.zo ƒ symtable.zo
link.zo ƒ tr_const.zo
main.zo ƒ ::compiler:config.zi
main.zo ƒ ::compiler:interntl.zo
main.zo ƒ link.zo
main.zo ƒ ::compiler:misc.zo
main.zo ƒ readword.zo
main.zo ƒ symtable.zo
main.zo ƒ version.zo
patch.zo ƒ ::compiler:reloc.zo
patch.zo ƒ symtable.zo
predef.zo ƒ ::compiler:const.zo
symtable.zo ƒ ::compiler:const.zo
symtable.zo ƒ ::compiler:interntl.zo
symtable.zo ƒ ::compiler:misc.zo
symtable.zo ƒ predef.zo
symtable.zo ƒ prim_c.zo
tr_const.zo ƒ ::compiler:const.zo
tr_const.zo ƒ symtable.zo
version.zo ƒ ::compiler:interntl.zo